package com.yundingai.service.impl;

import com.yundingai.ai.tools.PlanFunction;
import com.yundingai.service.FunctionCallingService;
import org.springframework.stereotype.Service;

import java.lang.annotation.Annotation;
import java.lang.reflect.Constructor;
import java.util.Map;

/**
 * @Author: liyuxiang
 * @Date: 2025/7/17 16:45
 */
@Service
public class FunctionCallingServiceImpl implements FunctionCallingService {
    @Override
    public Map<String, Object> list() {
        Class<PlanFunction> planFunctionClass = PlanFunction.class;
        Constructor<?>[] constructors = planFunctionClass.getConstructors();

        for (Constructor constructor : constructors){

            Annotation annotation = constructor.getAnnotation(PlanFunction.class);
            System.out.println(annotation);
        }
        return null;
    }
}
